#include <Rectangle.h>

Rectangle::Rectangle(Unit32 height,Unit32 length): height_m(height),length_m(length)
{}

void Rectangle::setHeight(Unit32 height)
{
    height_m = height;
}

void Rectangle::setLength(Unit32 length)
{
    length_m = length;
}

Unit32 Rectangle::calcPerimeter(void) const
{
	return 2*(height_m+length_m);
}

Unit32 Rectangle::calcArea(void) const
{
	return height_m*length_m;
}
